<div id="belly" class="profile">
    <h1><?=$data->TITLE?></h1>
    <h2 class="desc"><?=$data->DESCRIPTION?></h2>
    <?if(!$data->photos->hasphoto):?>
    <p class="error">
        <?=_('You must upload at least one profile photo to use the system.');?>
    </p>
    <?endif;?>
    <?if($data->photos->result):?>
    <p class="<?$data->photos->result>200?'error':'success'?>">e
        <?
        switch($data->photos->result){
            case 200:
                echo _('Upload successfuly.');
            break;
            case 600:
                echo _('Your photo limit is full.');
            break;
            case 800:
                echo _('Upload error. Please try again with another photo.');
            break;
        }
       ?>
    </p>
    <?endif;?>
    <div class="threeColumn">
        <div class="column">
            <p class="desc"><?=_('This is your profile photo.')?></p>
            <img src="http://<?=COOKIELESS.'/'.$data->profile->photo->profile.'?'.rand(0,999)?>" alt="<?=_('Your profile photo')?>"/>
        </div><div class="column">
            <p class="desc"><?=_('This is the thumbnail of your profile photo.')?></p>
            <div id="thumbPoseur">
                <img src="http://<?=COOKIELESS.'/'.$data->profile->photo->thumb.'?'.rand(0,999)?>" alt="<?=_('Your thumbnail')?>"/>
            </div>
            <?/*<p class="desc"><?=_('Click on to photo to set your thumbnail.')?></p>*/?>
        </div><div class="column">
            <p class="desc"><?=_('This is the buddy icon of your profile.')?></p>
            <div id="miniPoseur">
                    <img src="http://<?=COOKIELESS.'/'.$data->profile->photo->mini.'?'.rand(0,999)?>" alt="<?=_('Your mini photo')?>"/>
            </div>
        </div>
    <div class="clear"></div>
    </div>
    <div class="clear"></div>
    <form id="form" method="post" action="<?=PREFIX.'/'.APP.'/'.CMD?>" enctype="multipart/form-data">
        <div class="formLineLight">
            <label class="formLabel"><?=_('Photo caption')?>: </label><span class="input"><input id="caption" name="caption" type="text" tabindex="1" /></span>
        <span class="clear"></span>
        </div>
        <div class="formLineDark">
            <label class="formLabel"><?=_('Profile photo')?>:  </label><span class="input required">
                <input id="Filedata" name="Filedata" type="file" tabindex="2" />
            </span>
        <span class="clear"></span>
        </div>
        <div class="formLineLight">
            <span class="submit">
                <span id="loader" class="loader"><img src="/themes/<?=THEME?>/images/loader.gif" alt="loader" /></span>
                <input id="jsStatus" name="js" type="hidden" value="0" />
                <input id="submit" class="submit" type="submit" value="<?=_('Upload')?>" tabindex="3" />
                <span class="clear"></span>
            </span>
        <span class="clear"></span>
        </div>
    </form>
</div>